import request from '@/utils/request'


/** 获取当前用户可以进行审批操作的   采购计划列表*/
export function approveProcurePlan(params) {
  return request({
    url: '/device/procurePlan-approve/taskList',
    method: 'get',
    params,
  })
}
//
export function approveDonePlan(params) {
  return request({
    url: '/device/procurePlan-approve/taskDoneList',
    method: 'get',
    params,
  })
}

export function approve(params) {
  return request({
    url: '/device/procurePlan-approve/complete',
    method: 'post',
    data:params,
  })
}

export function approveList(id){
  return request({
    url: `/device/procurePlan-approve/${id}`,
    method: 'get',
  })
}

export function approveImg(params){
  return request({
    url: `/process/read-resource`,
    method: 'get',
    params
  })
}
